package example.demo.controller;

import com.alibaba.fastjson.JSON;
import example.demo.collect.CollectTag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/spring-boot/system/api/collect")
public class CollectController {

    @CollectTag
    @RequestMapping("/print-date")
    public String printDate() {
        return "当前时间是" + new Date();
    }

    @CollectTag
    @RequestMapping("/game")
    public String game() {
        return "当前时间是" + new Date();
    }


    @RequestMapping("/rao")
    public String rao() {
        return "rao";
    }
}
